Fix pnpm version mismatch in GitHub Actions workflows#134
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix action step issue in GitHub workflow
Fix pnpm version mismatch in GitHub Actions workflows
Jan 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Aligns GitHub Actions workflows’ pnpm version with the repository’s packageManager setting to prevent CI failures caused by ERR_PNPM_BAD_PM_VERSION.
Changes:
- Updated
pnpm/action-setup@v4versionfrom10.28.0to10.28.1across CI, lint/typecheck, dependency validation, and PR automation workflows. - Ensures workflow pnpm version matches
package.json(pnpm@10.28.1).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/ci.yml | Updates pnpm version for both test and build jobs to match packageManager. |
| .github/workflows/lint.yml | Updates pnpm version in the typecheck job to match packageManager. |
| .github/workflows/validate-deps.yml | Updates pnpm version in dependency validation workflow to match packageManager. |
| .github/workflows/pr-automation.yml | Updates pnpm version in changeset-check job to match packageManager. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI was failing because
package.jsonspecifiespnpm@10.28.1while all workflows used10.28.0, triggeringERR_PNPM_BAD_PM_VERSIONinpnpm/action-setup@v4.Changes
Updated pnpm version to
10.28.1in:.github/workflows/ci.yml(test and build jobs).github/workflows/lint.yml(typecheck job).github/workflows/validate-deps.yml(validate job).github/workflows/pr-automation.yml(changeset-check job)All workflow files now align with the
packageManagerfield inpackage.json.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.